package com.salefinder.server.server.dao;

import org.hibernate.Session;

import com.salefinder.server.server.vo.Category;
import com.salefinder.server.server.vo.Category;

public class CategoryDao extends BaseDao {

	public CategoryDao(){
	
		
	}
	
	public void createOrUpdateCategory(Category vo){
		this.createOrUpdate(vo);
	}
	
	public void deleteCategory(Category vo){
		this.delete(vo);
	}
	
	public void loadCategory(Category vo){
		this.load(this.getClass(), vo.getId());
	}
	
	public static void main(String [] args){
		Category c = new Category();
		c.setName("Grocery");
		CategoryDao cd = new CategoryDao();
		cd.createOrUpdateCategory(c);
	}
}
